#include "button.h"
#include "display.h"

char isButtonSpeedUpPressing(void)
{
	return ((~P1IN & (1<<BUTTON_SPEED_UP)) != 0);
}

char isButtonSpeedDownPressing(void)
{
	return ((~P1IN & (1<<BUTTON_SPEED_DOWN)) != 0);
}

char isButtonTimerUpPressing(void)
{
	return ((~P1IN & (1<<BUTTON_TIMER_UP)) != 0);
}

char isButtonTimerDownPressing(void)
{
	return ((~P3IN & (1<<BUTTON_TIMER_DOWN)) != 0);
}

char isButtonSpeedUpPressed(void)
{
	return (ButtonPressed == BUTTON_SPEED_UP_PRESSED);
}

char isButtonSpeedDownPressed(void)
{
	return (ButtonPressed == BUTTON_SPEED_DOWN_PRESSED);
}

char isButtonTimerUpPressed(void)
{
	return (ButtonPressed == BUTTON_TIMER_UP_PRESSED);
}

char isButtonTimerDownPressed(void)
{
	return (ButtonPressed == BUTTON_TIMER_DOWN_PRESSED);
}

